#define _CRT_SECURE_NO_WARNINGS 1
double Fx(double x, int n)
{
    if (n == 1)
        return x;
    return (-x) * Fx(x, n - 1) + x;
}